package cn.itsource.hrm.feignclients;


import cn.itsource.hrm.fallback.PageStaticFeignClientFallbackFactory;
import cn.itsource.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

//value属性：调用目标服务的服务名
@FeignClient(value="page-static-server", fallbackFactory = PageStaticFeignClientFallbackFactory.class)
public interface PageStaticFeignClient {

    @RequestMapping(value="/pager/static",method= RequestMethod.POST)
    AjaxResult pageStatic(@RequestParam("pageName") String pageName, @RequestParam("redisDataKey") String redisDataKey);
}
